package com.spring.study;

import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.WebApplicationInitializer;

@Slf4j
public class Main implements WebApplicationInitializer {
    public static void main(String[] args) {
        System.out.println("Hello world!");
    }

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        log.info(servletContext.getContextPath());
    }
}